package houtai.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "quanzi_publish")
public class Publish implements java.io.Serializable {
    private static final long serialVersionUID = 8732308321082804771L;
    @Id
    private ObjectId id; //主键id
    private Long created; //发布时间
    private String latitude; //纬度
    private String locationName; //位置名称
    private String longitude; //经度
    private List<String> medias; //媒体数据，图⽚片或⼩小视频 url
    private Long pid; //发布id
    private Integer seeType; // 谁可以看，1-公开，2-私密，3-部分可⻅见，4-不不给谁看
    private String text; //⽂文字
    private Long userId; //发布用户id
}
